import { post, get } from '@/utils/request'

const user = {
  login: data => post('/admin/login', data),
  getInfo: data => post('/admin/whether/login', data),
  logout: data => post('user/logout')
}
export default user
